#ifndef WIFI_CONNECT_H
#define WIFI_CONNECT_H
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266HTTPClient.h>
#include <WiFiClient.h>
#include <Ticker.h>

extern char ssid[];              // WIFI名
extern char pass[];              //WIFI密码
extern ESP8266WiFiMulti WiFiMulti;

extern WiFiClient client;
extern HTTPClient http;


void Serial_Init(unsigned long baud);                  //等待串口释放，打印提示信息
void WaitWiFi_Connect();             // 如果WiFi没有连接，一直循环打印点

void delayNs(uint8_t m);
void delayRestart(float t);

#endif
